aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/invoice
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-07 15:10:24 -0800
committerAdam Soltys <[email protected]>2023-12-07 15:10:24 -0800
commitef8ad6b7b51485fa3baf0fdf47bea72355d6354c (patch)
treeed161bcbf918b56b37d3c3417d6f4d5616f82ee8 /src/routes/(app)/[username]/invoice
parent52df87f8707efd74bf7e9763c517f456f65ea9ff (diff)
downloadcoinos-ui-ef8ad6b7b51485fa3baf0fdf47bea72355d6354c.tar.gz
coinos-ui-ef8ad6b7b51485fa3baf0fdf47bea72355d6354c.zip
forgot password
Diffstat (limited to 'src/routes/(app)/[username]/invoice')
-rw-r--r--src/routes/(app)/[username]/invoice/[id]/+page.svelte24
-rw-r--r--src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte12
2 files changed, 20 insertions, 16 deletions
diff --git a/src/routes/(app)/[username]/invoice/[id]/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/+page.svelte
index 0ff1c21c..13c75fca 100644
--- a/src/routes/(app)/[username]/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/[username]/invoice/[id]/+page.svelte
@@ -130,17 +130,13 @@
class="rounded-full border py-2 px-4 font-bold hover:opacity-80 w-full"
class:bg-black={type === types.lightning}
class:text-white={type === types.lightning}
- on:click={toggleType}
- >
- ⚡️ Lightning
- </button>
+ on:click={toggleType}> ⚡️ Lightning </button>
<button
class="rounded-full border py-2 px-4 font-bold hover:opacity-80 w-full flex justify-center"
class:bg-black={type === types.bitcoin}
class:text-white={type === types.bitcoin}
- on:click={toggleType}
- >
+ on:click={toggleType}>
<img
src="/images/bitcoin.svg"
class="my-auto w-8 border-4 border-transparent"
@@ -155,8 +151,7 @@
<a
href={invoice.type === "bitcoin"
? invoice.text
- : "lightning:" + invoice.text}
- >
+ : "lightning:" + invoice.text}>
<div class="relative flex">
<div class="flex mx-auto w-[360px] h-[360px]">
<img
@@ -208,8 +203,7 @@
<div class="w-full flex justify-center gap-2 flex-wrap">
<a href={link} class="w-full md:w-auto">
<button
- class="w-full md:w-auto flex justify-center rounded-full border py-3 px-5 hover:opacity-80"
- >
+ class="w-full md:w-auto flex justify-center rounded-full border py-3 px-5 hover:opacity-80">
<Icon icon="mobile" style="mr-1 w-6" />
<div class="text-secondary">{$t("payments.openLink")}</div>
</button>
@@ -217,16 +211,18 @@
<button
class="flex rounded-full justify-center border py-3 px-5 hover:opacity-80 w-full md:w-auto"
- on:click={() => copy(txt)}
- >
+ on:click={() => copy(txt)}>
+
+
<Icon icon="copy" style="mr-1" />
<div class="text-secondary">{$t("payments.copyText")}</div></button
>
<button
class="w-full md:w-auto flex justify-center rounded-full border py-3 px-5 hover:opacity-80"
- on:click={() => (showQr = !showQr)}
- >
+ on:click={() => (showQr = !showQr)}>
+
+
<Icon icon="qr" style="mr-1 invert" />
<div class="text-secondary">
{showQr ? $t("payments.hide") : $t("payments.show")}
diff --git a/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte
index 9740dc92..bc974b9a 100644
--- a/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte
+++ b/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte
@@ -9,8 +9,16 @@
export let data;
let amount, currency, rate, received, pending, tip, user, id;
$: data &&
- ({ amount, currency, rate, received, pending, tip, user, id } =
- data.invoice);
+ ({
+ amount,
+ currency,
+ rate,
+ received,
+ pending,
+ tip,
+ user,
+ id,
+ } = data.invoice);
toast.pop(0);
</script>